# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=rgb
pkgver=1.1.0
pkgrel=5
pkgdesc="X.org utility to display an RGB color-name database"
url="https://xorg.freedesktop.org/"
arch="all"
options="!check"  # No tests.
license="MIT"
subpackages="$pkgname-doc"
makedepends="util-macros xorgproto"
source="https://www.x.org/releases/individual/app/rgb-$pkgver.tar.xz"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--mandir=/usr/share/man
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
640888d64b2d328fff4a1652ba1299436e348bc3cbc90710d79c635acfa7f2fce0018adb818123b41ca008197ff1cbf87aab60501de36c163bed2d80d8556008  rgb-1.1.0.tar.xz
"
